//
//  UserDefinedCellForRepairEstimateView.m
//  HondaPro_2
//
//  Created by Eric on 13-6-4.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import "UserDefinedCellForRepairEstimateView.h"

@interface UserDefinedCellForRepairEstimateView ()

//实例方法,自定义cell
-(void)addLabel1ToCell;
-(void)addLabel2ToCell;
-(void)addLabel3ToCell;
-(void)addLabel4ToCell;
-(void)addLabel5ToCell;

@end

@implementation UserDefinedCellForRepairEstimateView

@synthesize label1 = _label1;
@synthesize label2 = _label2;
@synthesize label3 = _label3;
@synthesize label4 = _label4;
@synthesize label5 = _label5;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self addLabel1ToCell];
        [self addLabel2ToCell];
        [self addLabel3ToCell];
        [self addLabel4ToCell];
        [self addLabel5ToCell];
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - 给自定义cell添加label

-(void)addLabel1ToCell
{
    self.label1= [[UILabel alloc] init];
    self.label1.backgroundColor = [UIColor clearColor];
    self.label1.frame = CGRectMake(1, 0, 92, 50);
    self.label1.font = [UIFont systemFontOfSize:13];
    self.label1.textColor = [UIColor darkGrayColor];
    self.label1.textAlignment = UITextAlignmentCenter;
    [self.contentView addSubview:self.label1];
}

-(void)addLabel2ToCell
{
    self.label2 = [[UILabel alloc] init];
    self.label2.backgroundColor = [UIColor clearColor];
    self.label2.frame = CGRectMake(94, 0, 257, 50);
    self.label2.font = [UIFont systemFontOfSize:13];
    self.label2.textColor = [UIColor darkGrayColor];
    [self.contentView addSubview:self.label2];
}

-(void)addLabel3ToCell
{
    self.label3 = [[UILabel alloc] init];
    self.label3.backgroundColor = [UIColor clearColor];
    self.label3.frame = CGRectMake(352, 0, 106, 50);
    self.label3.font = [UIFont systemFontOfSize:13];
    self.label3.textColor = [UIColor darkGrayColor];
    [self.contentView addSubview:self.label3];
}

-(void)addLabel4ToCell
{
    self.label4 = [[UILabel alloc] init];
    self.label4 .backgroundColor = [UIColor clearColor];
    self.label4 .frame = CGRectMake(459, 0, 101, 50);
    self.label4.font = [UIFont systemFontOfSize:13];
    self.label4.textColor = [UIColor darkGrayColor];
    [self.contentView addSubview:self.label4 ];
}

-(void)addLabel5ToCell
{
    self.label5 = [[UILabel alloc] init];
    self.label5.backgroundColor = [UIColor clearColor];
    self.label5.frame = CGRectMake(561, 0, 316, 50);
    self.label5.font = [UIFont systemFontOfSize:13];
    self.label5.textColor = [UIColor darkGrayColor];
    [self.contentView addSubview:self.label5];
}

@end
